import { SupplierTypeEnum } from '@/constants/enum';
export interface ISupplierParams {
  nameOrCode?: string;
  supplierType?: string;
}

export interface ISupplierResult {
  supplierNo: string;
  supplierCode: string;
  supplierName: string;
  supplierType: keyof typeof SupplierTypeEnum;
  formNum: string;
  creator: string;
  createTime: string;
  userNum: string;
}

export interface ICreateSupplierParams {
  supplierNo?: string;
  supplierCode: string;
  supplierName: string;
  supplierType: keyof typeof SupplierTypeEnum;
}

export interface IUser {
  userId: string;
  realName: string;
  phone: string;
  username: string;
  email: string;
  createTime: string;
  creator: string;
}
export interface ICreateUser {
  realName: string;
  phone: string;
  email: string;
  enterpriseNo: string;
  enterpriseName: string;
}

export interface IEditUser {
  realName: string;
  phone: string | null;
  userId: string;
}

export type ISupplierDetail = Required<ICreateSupplierParams>;
